//导入 mongoose
const mongoose = require('mongoose');
//创建文档的结构对象                                        orderchema文档结构对象
//设置集合中文档的属性以及属性值的类型
let orderchema = new mongoose.Schema({
  //标题
  classify:String,
  uuid:String,
  title:String,
  img:String,
  price:String,
  times:String,
  introduce:String,
  lastprice:String
});

//创建模型对象  对文档操作的封装对象                        Takeordermodel文档模型对象
let TakeorderModel = mongoose.model('order', orderchema);       

//暴露模型对象
module.exports = TakeorderModel;
